package com.yuchen.ishop.search;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.yuchen.core.jdbc.BaseDao;
import com.yuchen.ishop.entity.Buyer;
import org.springframework.beans.factory.annotation.Autowired;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 *
 */
@Path("searchService")
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public class SearchServiceImpl implements SearchService{

    @Autowired
    private BaseDao dao;

    @GET
    @Path("test")
    public Buyer test(){
        Buyer buyer = dao.fetch(Buyer.class);
        return buyer;
    }


}
